package com.zlt.bkparking.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class RechargeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RechargeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRIdIsNull() {
            addCriterion("r_id is null");
            return (Criteria) this;
        }

        public Criteria andRIdIsNotNull() {
            addCriterion("r_id is not null");
            return (Criteria) this;
        }

        public Criteria andRIdEqualTo(Integer value) {
            addCriterion("r_id =", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdNotEqualTo(Integer value) {
            addCriterion("r_id <>", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdGreaterThan(Integer value) {
            addCriterion("r_id >", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("r_id >=", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdLessThan(Integer value) {
            addCriterion("r_id <", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdLessThanOrEqualTo(Integer value) {
            addCriterion("r_id <=", value, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdIn(List<Integer> values) {
            addCriterion("r_id in", values, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdNotIn(List<Integer> values) {
            addCriterion("r_id not in", values, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdBetween(Integer value1, Integer value2) {
            addCriterion("r_id between", value1, value2, "rId");
            return (Criteria) this;
        }

        public Criteria andRIdNotBetween(Integer value1, Integer value2) {
            addCriterion("r_id not between", value1, value2, "rId");
            return (Criteria) this;
        }

        public Criteria andRNoIsNull() {
            addCriterion("r_no is null");
            return (Criteria) this;
        }

        public Criteria andRNoIsNotNull() {
            addCriterion("r_no is not null");
            return (Criteria) this;
        }

        public Criteria andRNoEqualTo(String value) {
            addCriterion("r_no =", value, "rNo");
            return (Criteria) this;
        }

        public Criteria andRNoNotEqualTo(String value) {
            addCriterion("r_no <>", value, "rNo");
            return (Criteria) this;
        }

        public Criteria andRNoGreaterThan(String value) {
            addCriterion("r_no >", value, "rNo");
            return (Criteria) this;
        }

        public Criteria andRNoGreaterThanOrEqualTo(String value) {
            addCriterion("r_no >=", value, "rNo");
            return (Criteria) this;
        }

        public Criteria andRNoLessThan(String value) {
            addCriterion("r_no <", value, "rNo");
            return (Criteria) this;
        }

        public Criteria andRNoLessThanOrEqualTo(String value) {
            addCriterion("r_no <=", value, "rNo");
            return (Criteria) this;
        }

        public Criteria andRNoLike(String value) {
            addCriterion("r_no like", value, "rNo");
            return (Criteria) this;
        }

        public Criteria andRNoNotLike(String value) {
            addCriterion("r_no not like", value, "rNo");
            return (Criteria) this;
        }

        public Criteria andRNoIn(List<String> values) {
            addCriterion("r_no in", values, "rNo");
            return (Criteria) this;
        }

        public Criteria andRNoNotIn(List<String> values) {
            addCriterion("r_no not in", values, "rNo");
            return (Criteria) this;
        }

        public Criteria andRNoBetween(String value1, String value2) {
            addCriterion("r_no between", value1, value2, "rNo");
            return (Criteria) this;
        }

        public Criteria andRNoNotBetween(String value1, String value2) {
            addCriterion("r_no not between", value1, value2, "rNo");
            return (Criteria) this;
        }

        public Criteria andAuIdIsNull() {
            addCriterion("au_id is null");
            return (Criteria) this;
        }

        public Criteria andAuIdIsNotNull() {
            addCriterion("au_id is not null");
            return (Criteria) this;
        }

        public Criteria andAuIdEqualTo(String value) {
            addCriterion("au_id =", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotEqualTo(String value) {
            addCriterion("au_id <>", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdGreaterThan(String value) {
            addCriterion("au_id >", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdGreaterThanOrEqualTo(String value) {
            addCriterion("au_id >=", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLessThan(String value) {
            addCriterion("au_id <", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLessThanOrEqualTo(String value) {
            addCriterion("au_id <=", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLike(String value) {
            addCriterion("au_id like", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotLike(String value) {
            addCriterion("au_id not like", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdIn(List<String> values) {
            addCriterion("au_id in", values, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotIn(List<String> values) {
            addCriterion("au_id not in", values, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdBetween(String value1, String value2) {
            addCriterion("au_id between", value1, value2, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotBetween(String value1, String value2) {
            addCriterion("au_id not between", value1, value2, "auId");
            return (Criteria) this;
        }

        public Criteria andAuMoneyIsNull() {
            addCriterion("au_money is null");
            return (Criteria) this;
        }

        public Criteria andAuMoneyIsNotNull() {
            addCriterion("au_money is not null");
            return (Criteria) this;
        }

        public Criteria andAuMoneyEqualTo(BigDecimal value) {
            addCriterion("au_money =", value, "auMoney");
            return (Criteria) this;
        }

        public Criteria andAuMoneyNotEqualTo(BigDecimal value) {
            addCriterion("au_money <>", value, "auMoney");
            return (Criteria) this;
        }

        public Criteria andAuMoneyGreaterThan(BigDecimal value) {
            addCriterion("au_money >", value, "auMoney");
            return (Criteria) this;
        }

        public Criteria andAuMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("au_money >=", value, "auMoney");
            return (Criteria) this;
        }

        public Criteria andAuMoneyLessThan(BigDecimal value) {
            addCriterion("au_money <", value, "auMoney");
            return (Criteria) this;
        }

        public Criteria andAuMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("au_money <=", value, "auMoney");
            return (Criteria) this;
        }

        public Criteria andAuMoneyIn(List<BigDecimal> values) {
            addCriterion("au_money in", values, "auMoney");
            return (Criteria) this;
        }

        public Criteria andAuMoneyNotIn(List<BigDecimal> values) {
            addCriterion("au_money not in", values, "auMoney");
            return (Criteria) this;
        }

        public Criteria andAuMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("au_money between", value1, value2, "auMoney");
            return (Criteria) this;
        }

        public Criteria andAuMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("au_money not between", value1, value2, "auMoney");
            return (Criteria) this;
        }

        public Criteria andIsRechargeIsNull() {
            addCriterion("is_recharge is null");
            return (Criteria) this;
        }

        public Criteria andIsRechargeIsNotNull() {
            addCriterion("is_recharge is not null");
            return (Criteria) this;
        }

        public Criteria andIsRechargeEqualTo(Byte value) {
            addCriterion("is_recharge =", value, "isRecharge");
            return (Criteria) this;
        }

        public Criteria andIsRechargeNotEqualTo(Byte value) {
            addCriterion("is_recharge <>", value, "isRecharge");
            return (Criteria) this;
        }

        public Criteria andIsRechargeGreaterThan(Byte value) {
            addCriterion("is_recharge >", value, "isRecharge");
            return (Criteria) this;
        }

        public Criteria andIsRechargeGreaterThanOrEqualTo(Byte value) {
            addCriterion("is_recharge >=", value, "isRecharge");
            return (Criteria) this;
        }

        public Criteria andIsRechargeLessThan(Byte value) {
            addCriterion("is_recharge <", value, "isRecharge");
            return (Criteria) this;
        }

        public Criteria andIsRechargeLessThanOrEqualTo(Byte value) {
            addCriterion("is_recharge <=", value, "isRecharge");
            return (Criteria) this;
        }

        public Criteria andIsRechargeIn(List<Byte> values) {
            addCriterion("is_recharge in", values, "isRecharge");
            return (Criteria) this;
        }

        public Criteria andIsRechargeNotIn(List<Byte> values) {
            addCriterion("is_recharge not in", values, "isRecharge");
            return (Criteria) this;
        }

        public Criteria andIsRechargeBetween(Byte value1, Byte value2) {
            addCriterion("is_recharge between", value1, value2, "isRecharge");
            return (Criteria) this;
        }

        public Criteria andIsRechargeNotBetween(Byte value1, Byte value2) {
            addCriterion("is_recharge not between", value1, value2, "isRecharge");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}